import { createPinia } from 'pinia';
import useAppStore from './modules/app';
import useUserStore from './modules/user';
import useTabBarStore from './modules/tab-bar';

// 实例化pinia
const pinia = createPinia();

// 导出各个pinia模块
export { useAppStore, useUserStore, useTabBarStore };

// 导出pinia
export default pinia;
